Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 72cfab3bd29bd8a4fe63d83542b6e62138058a9f


Parents : c276c29
Author : Mark Qvist <mark@unsigned.io>
Date : 2022-10-20T21:12:16+02:00

Fixed missing escape parsing for backslashes

Changes

1 files changed, 5 insertions(+), 1 deletions(-)


Diff

diff --git a/nomadnet/ui/textui/MicronParser.py b/nomadnet/ui/textui/MicronParser.py
index 7a8ff7e..6948c00 100644
--- a/nomadnet/ui/textui/MicronParser.py
+++ b/nomadnet/ui/textui/MicronParser.py
@@ -480,7 +480,11 @@ def make_output(state, line, url_delegate):
elif mode == "text":
if c == "\\":
- escape = True
+ if escape:
+ part += c
+ escape = False
+ else:
+ escape = True
elif c == "`":
if escape:
part += c


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────